import request from '@/utils/request'

// 查询学生作业列表
export function listS_homework(query) {
  return request({
    url: '/course/s_homework/list',
    method: 'get',
    params: query
  })
}

// 查询学生作业所有列表
export function listAllS_homework(query) {
  return request({
    url: '/course/s_homework/listAll',
    method: 'get',
    params: query
  })
}

// 查询学生作业详细
export function getS_homework(id) {
  return request({
    url: '/course/s_homework/getInfo/' + id,
    method: 'get'
  })
}

// 新增学生作业
export function addS_homework(data) {
  return request({
    url: '/course/s_homework/add',
    method: 'post',
    data: data
  })
}

// 修改学生作业
export function updateS_homework(data) {
  return request({
    url: '/course/s_homework/edit',
    method: 'post',
    data: data
  })
}

// 删除学生作业
export function delS_homework(id) {
  return request({
    url: '/course/s_homework/remove/' + id,
    method: 'get'
  })
}
